﻿@* 
Project: Aguafrommars/TheIdServer
Copyright (c) 2022 @Olivier Lefebvre
*@
@page
@inject IViewLocalizer Localizer
@inject IUrlHelper UrlHelper
@model GenerateRecoveryCodesModel
@{
    ViewData["Title"] = Localizer["Generate two-factor authentication (2FA) recovery codes"];
    ViewData["ActivePage"] = ManageNavPages.TwoFactorAuthentication;
}

<partial name="_StatusMessage" for="StatusMessage" />
<h4>@ViewData["Title"]</h4>
<div class="alert alert-warning" role="alert">
    <p>
        <span class="glyphicon glyphicon-warning-sign"></span>
        <strong>@Localizer["Put these codes in a safe place."]</strong>
    </p>
    <p>
        @Localizer["If you lose your device and don't have the recovery codes you will lose access to your account."]
    </p>
    <p>
        @Localizer["Generating new recovery codes does not change the keys used in authenticator apps. If you wish to change the key used in an authenticator app you should <a href=\"{0}\">reset your authenticator keys.</a>", UrlHelper.Page("./ResetAuthenticator")]
    </p>
</div>
<div>
    <form method="post">
        <button class="btn btn-danger" type="submit">@Localizer["Generate Recovery Codes"]</button>
    </form>
</div>
